package com.vcaresolution.logistic.form;

import javax.validation.constraints.Digits;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.stereotype.Component;

import com.vcaresolution.logistic.pojo.Company;

/**
 * <code>CompanyForm</code> represents Company managemnet related fields.
 *
 * @author Snehal Shah
 * @version 1.0
 * @since ShipSoft 1.0
 */
@Component
public class CompanyForm extends Company{

	private static final long serialVersionUID = 1L;
	
	@NotNull
	private Integer cityId;
	
	@Override
	@NotEmpty
	public String getCompanyname() {
		return super.getCompanyname();
	}
	
	@Override
	@NotEmpty
	public String getCtcperson() {
		return super.getCtcperson();
	}
	
	@Override
	@NotEmpty
	public String getEmail() {
		return super.getEmail();
	}

	@Override
	@Digits(integer=10,fraction=0)
	public Long getCellno() {
		return super.getCellno();
	}
	
	@Override
	public String getWebsite() {
		return super.getWebsite();
	}
	
	@Override
	public String getComments() {
		return super.getComments();
	}

	/**
	 * @return the cityId
	 */
	public Integer getCityId() {
		return cityId;
	}

	/**
	 * @param cityId the cityId to set
	 */
	public void setCityId(Integer cityId) {
		this.cityId = cityId;
	}
	
}
